/**
 * 
 */
package com.suneee.shop.service;

import java.util.List;
import java.util.Map;

import com.suneee.context.page.Page;
import com.suneee.shop.bean.ShopSearchBean;
import com.suneee.shop.entity.Shop;

/**
 * @author liuxh 店铺管理service层
 */
public interface ShopService {

	/**
	 * 增加店铺
	 * 
	 * @param Shopy
	 * @return
	 */
	public Shop addShop(Shop shop);

	/**
	 * 修改店铺
	 * 
	 * @param shop
	 * @return
	 */
	public Shop updateShop(Shop shop);

	/**
	 * 删除店铺
	 * 
	 * @param shopId
	 */
	public void deleteShop(int shopId);

	/**
	 * 获取t_Shop表中的符合条件的数据
	 */
	public Page<Map<String,Object>> findShop(ShopSearchBean name);

	/**
	 * 获取单条数据
	 * 
	 * @param shopId
	 * @return
	 */
	public Shop getShop(int shopId);

	/**
	 * 激活店铺
	 * @param shopId
	 */
	public void normalShop(int shopId);
	
	/**
	 * 禁用店铺
	 * @param shopId
	 */
	public void invisibleShop(int shopId);
	
	/**
	 * 店铺对接设置
	 * @param shopId
	 * @param ruleInfo
	 */
	public void settingsShop(int shopId,String ruleInfo);
	
	/**
	 * 店铺代理URL设置
	 * @param shopId
	 * @param proxyURL
	 */
	public void updateProxyURL(int shopId,String proxyURL);
	
	/**
	 * 获取该企业所有的店铺
	 * @return
	 */
	public List<Shop> listEnterpriseShop();
	
}
